package org.spring.jruby.erbtest.core;

import org.springframework.web.servlet.view.AbstractUrlBasedView;
import org.springframework.web.servlet.view.UrlBasedViewResolver;

/**
 *
 * @author oleg
 */
public class ErbViewResolver extends UrlBasedViewResolver {
    
    public ErbViewResolver() {
        setViewClass(requiredViewClass());
    }
    
    @Override
    protected final Class requiredViewClass() {
        return ErbView.class;
    }

    @Override
    protected AbstractUrlBasedView buildView(final String viewName) throws Exception {
        final ErbView view = (ErbView) super.buildView(viewName);
        return view;
    }
    
    
}
